package com.martin.dsc.heima.controller;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Data
@RestController
@ConfigurationProperties(prefix = "email")
public class HelloController {

//    @Value("${email.user}")
    public String user;
//    @Value("${email.password}")
    public String password;
//    @Value("${email.content}")
    public String content;

    @RequestMapping("/hello")
    public String hello() {
        return "用户名是"+user+"，密码是"+password+"内容是"+content+"tset221";
    }
}
